// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_INV_CHECKING_PLAN
// * CreateDate    : 2012/10/26 16:05:08
// * Creater       : CodeSmith
// * LastChangeDate: 2012/10/26 16:05:08
// * LastChanger   : 2012/10/26 16:05:08
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;

namespace ESOL.Common.Entity
{
    [Serializable]
    public partial class InvCheckingPlanEntity : EntityBase
    {
        public InvCheckingPlanTable TableSchema
        {
            get
            {
                return InvCheckingPlanTable.Current;
            }
        }

        public InvCheckingPlanEntity()
        {

        }

        public InvCheckingPlanEntity(DataRow dr)
        {
            if (dr == null)
            {
                return;
            }
            this.CheckingPlanId = Convert.ToString(CommonFunctions.ToObject(dr["CHECKING_PLAN_ID"]));
            this.CheckingPlanCode = Convert.ToString(CommonFunctions.ToObject(dr["CHECKING_PLAN_CODE"]));
            this.CheckingPerson = Convert.ToString(CommonFunctions.ToObject(dr["CHECKING_PERSON"]));
            this.WarehouseCode = Convert.ToString(CommonFunctions.ToObject(dr["WAREHOUSE_CODE"]));
            this.PlanDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["PLAN_DATE"]));
            this.BeginDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["BEGIN_DATE"]));
            this.FinishDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["FINISH_DATE"]));
            this.Status = Convert.ToString(CommonFunctions.ToObject(dr["STATUS"]));
            this.ApprovedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["APPROVED_DATE"]));
            this.ApprovedBy = Convert.ToString(CommonFunctions.ToObject(dr["APPROVED_BY"]));
            this.CreatedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["CREATED_DATE"]));
            this.CreatedBy = Convert.ToString(CommonFunctions.ToObject(dr["CREATED_BY"]));
            this.LastModifiedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["LAST_MODIFIED_DATE"]));
            this.LastModifiedBy = Convert.ToString(CommonFunctions.ToObject(dr["LAST_MODIFIED_BY"]));
            this.Remark = Convert.ToString(CommonFunctions.ToObject(dr["REMARK"]));
        }

        public InvCheckingPlanEntity(DataRowView dr)
        {
            if (dr == null)
            {
                return;
            }
            this.CheckingPlanId = Convert.ToString(CommonFunctions.ToObject(dr["CHECKING_PLAN_ID"]));
            this.CheckingPlanCode = Convert.ToString(CommonFunctions.ToObject(dr["CHECKING_PLAN_CODE"]));
            this.CheckingPerson = Convert.ToString(CommonFunctions.ToObject(dr["CHECKING_PERSON"]));
            this.WarehouseCode = Convert.ToString(CommonFunctions.ToObject(dr["WAREHOUSE_CODE"]));
            this.PlanDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["PLAN_DATE"]));
            this.BeginDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["BEGIN_DATE"]));
            this.FinishDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["FINISH_DATE"]));
            this.Status = Convert.ToString(CommonFunctions.ToObject(dr["STATUS"]));
            this.ApprovedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["APPROVED_DATE"]));
            this.ApprovedBy = Convert.ToString(CommonFunctions.ToObject(dr["APPROVED_BY"]));
            this.CreatedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["CREATED_DATE"]));
            this.CreatedBy = Convert.ToString(CommonFunctions.ToObject(dr["CREATED_BY"]));
            this.LastModifiedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["LAST_MODIFIED_DATE"]));
            this.LastModifiedBy = Convert.ToString(CommonFunctions.ToObject(dr["LAST_MODIFIED_BY"]));
            this.Remark = Convert.ToString(CommonFunctions.ToObject(dr["REMARK"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return InvCheckingPlanTable.Current;
            }
        }

        #region Perporty List
        public string CheckingPlanId
        {
            get { return Convert.ToString(GetData(InvCheckingPlanTable.C_CHECKING_PLAN_ID)); }
            set { SetData(InvCheckingPlanTable.C_CHECKING_PLAN_ID, value); }
        }

        public string CheckingPlanCode
        {
            get { return Convert.ToString(GetData(InvCheckingPlanTable.C_CHECKING_PLAN_CODE)); }
            set { SetData(InvCheckingPlanTable.C_CHECKING_PLAN_CODE, value); }
        }

        public string CheckingPerson
        {
            get { return Convert.ToString(GetData(InvCheckingPlanTable.C_CHECKING_PERSON)); }
            set { SetData(InvCheckingPlanTable.C_CHECKING_PERSON, value); }
        }

        public string WarehouseCode
        {
            get { return Convert.ToString(GetData(InvCheckingPlanTable.C_WAREHOUSE_CODE)); }
            set { SetData(InvCheckingPlanTable.C_WAREHOUSE_CODE, value); }
        }

        public DateTime PlanDate
        {
            get { return Convert.ToDateTime(GetData(InvCheckingPlanTable.C_PLAN_DATE)); }
            set { SetData(InvCheckingPlanTable.C_PLAN_DATE, value); }
        }

        public DateTime BeginDate
        {
            get { return Convert.ToDateTime(GetData(InvCheckingPlanTable.C_BEGIN_DATE)); }
            set { SetData(InvCheckingPlanTable.C_BEGIN_DATE, value); }
        }

        public DateTime FinishDate
        {
            get { return Convert.ToDateTime(GetData(InvCheckingPlanTable.C_FINISH_DATE)); }
            set { SetData(InvCheckingPlanTable.C_FINISH_DATE, value); }
        }

        public string Status
        {
            get { return Convert.ToString(GetData(InvCheckingPlanTable.C_STATUS)); }
            set { SetData(InvCheckingPlanTable.C_STATUS, value); }
        }

        public DateTime ApprovedDate
        {
            get { return Convert.ToDateTime(GetData(InvCheckingPlanTable.C_APPROVED_DATE)); }
            set { SetData(InvCheckingPlanTable.C_APPROVED_DATE, value); }
        }

        public string ApprovedBy
        {
            get { return Convert.ToString(GetData(InvCheckingPlanTable.C_APPROVED_BY)); }
            set { SetData(InvCheckingPlanTable.C_APPROVED_BY, value); }
        }

        public DateTime CreatedDate
        {
            get { return Convert.ToDateTime(GetData(InvCheckingPlanTable.C_CREATED_DATE)); }
            set { SetData(InvCheckingPlanTable.C_CREATED_DATE, value); }
        }

        public string CreatedBy
        {
            get { return Convert.ToString(GetData(InvCheckingPlanTable.C_CREATED_BY)); }
            set { SetData(InvCheckingPlanTable.C_CREATED_BY, value); }
        }

        public DateTime LastModifiedDate
        {
            get { return Convert.ToDateTime(GetData(InvCheckingPlanTable.C_LAST_MODIFIED_DATE)); }
            set { SetData(InvCheckingPlanTable.C_LAST_MODIFIED_DATE, value); }
        }

        public string LastModifiedBy
        {
            get { return Convert.ToString(GetData(InvCheckingPlanTable.C_LAST_MODIFIED_BY)); }
            set { SetData(InvCheckingPlanTable.C_LAST_MODIFIED_BY, value); }
        }

        public string Remark
        {
            get { return Convert.ToString(GetData(InvCheckingPlanTable.C_REMARK)); }
            set { SetData(InvCheckingPlanTable.C_REMARK, value); }
        }

        #endregion
    }


}

